package com.github.bitsapling.sapling.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 促销活动表 ：促销活动规则
 * </p>
 *
 */
public class Promotion implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 活动类型
     */
    private String type;

    /**
     * 活动标题
     */
    private String title;

    /**
     * 活动规则
     */
    private String description;

    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

    /**
     * 是否生效，0：false，1：true
     */
    private Integer isActive;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public Integer getIsActive() {
        return isActive;
    }

    public void setIsActive(Integer isActive) {
        this.isActive = isActive;
    }

    @Override
    public String toString() {
        return "Promotion{" +
        "id = " + id +
        ", type = " + type +
        ", title = " + title +
        ", description = " + description +
        ", startTime = " + startTime +
        ", endTime = " + endTime +
        ", isActive = " + isActive +
        "}";
    }
}
